import Router from 'koa-router';
import EditProductLogsController from "../controller/editProductLogsController";

const router = new Router();

router.prefix('/api/editProductLog');

router
    /**
     * @swagger
     * /api/editProductLog/createLog:
     *   get: 
     *     description: 创建编辑任务记录  
     *     tags: [SHOP店铺模块] 
     *     summary: "创建编辑任务记录"
     *     parameters:
     *       - name: authCode
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
    .post('/createLog', EditProductLogsController.createLog)
    /**
     * @swagger
     * /api/editProductLog/addLog:
     *   get: 
     *     description: 添加记录 
     *     tags: [SHOP店铺模块] 
     *     summary: "店铺授权"
     *     parameters:
     *       - name: authCode
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
    .post('/addLog', EditProductLogsController.addLog)

    /**
     * @swagger
     * /api/editProductLog/getTask:
     *   get: 
     *     description: 编辑的任务 
     *     tags: [SHOP店铺模块] 
     *     summary: "编辑的任务"
     *     parameters:
     *       - name: authCode
     *     produces: 
     *       - application/json 
     *     responses: 
     *       200:
     *         description: 获取数据列表 
     * */
    .get('/getTask', EditProductLogsController.getTask)
    /**
    * @swagger
    * /api/editProductLog/getPrdLogs:
    *   get: 
    *     description: 编辑的任务详情 
    *     tags: [SHOP店铺模块] 
    *     summary: "编辑的任务"
    *     parameters:
    *       - name: authCode
    *     produces: 
    *       - application/json 
    *     responses: 
    *       200:
    *         description: 获取数据列表 
    * */
    .get('/getPrdLogs', EditProductLogsController.getPrdLogs)



export default router;